/**
 * Copyright (c) 2018 软唐 All rights reserved.
 *
 * https://www.softtown.cn
 *
 * 版权所有，侵权必究！
 */

package com.softtown.modules.dapai.controller;

import com.github.pagehelper.PageInfo;
import com.softtown.common.utils.Result;
import com.softtown.modules.dapai.dto.CompLeaseRecordsDTO;
import com.softtown.modules.dapai.dto.CompMacDTO;
import com.softtown.modules.dapai.service.CompLeaseRecordsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
* @Author: Ding Ya Yong
* @Description: 租赁订单记录
* @date: 2022/1/2 20:47
* @Param:
* @return:
*/
@RestController
@RequestMapping("leaseRecords")
@Api(tags="租赁订单记录")
public class CompLeaseRecordsController {

    @Resource
    private CompLeaseRecordsService compLeaseRecordsService;

    @PostMapping("getLeaseRecordsPageList")
    @ApiOperation("获取租赁订单记录分页")
    public Result getLeaseRecordsPageList(@RequestBody CompLeaseRecordsDTO compLeaseRecordsDTO) {
        PageInfo<CompLeaseRecordsDTO> compLeaseRecordsDTOPageInfo = compLeaseRecordsService.getLeaseRecordsPageList(compLeaseRecordsDTO);
        return new Result<PageInfo<CompLeaseRecordsDTO>>().ok(compLeaseRecordsDTOPageInfo);
    }

}
